package org.example.commodity.activity.timertask.processor;

import org.example.commodity.activity.entity.ActivityInfo;
import org.example.timertask.TimerStartProcessor;

public interface ICommodityActivityStartProcessor<T extends ActivityInfo> extends TimerStartProcessor<T> {
    /**
     * 商品活动执行
     *
     * @param activityId 活动id
     */
    void onActivity(Long activityId) ;

    /**
     * 商品活动定时任务执行
     *
     * @param activityId 活动id
     */
    void startActivity(Long activityId);

    @Override
    void unStartToStarting(T item);
}
